package com.xxf.aynu.parking;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RadioGroup;
import android.widget.TextView;

import org.w3c.dom.Text;

/**
 * Created by Rossoneri on 2017/5/10 0010.
 */
public class activity_mine extends Activity {
    private TextView tx_id;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_mine);
        TextView text;
        TextView text_pinglun;
        TextView text_ing;
        TextView text_fukuan;
        TextView text_mycar;

        TextView text_shoucang;
        TextView text_lianxi;
        TextView text_youhui;
        TextView text_fankui;
        ImageView text_setting;
        RadioGroup group;

        //获取id
        //
        //
        tx_id=(TextView)findViewById(R.id.mine_login);
        Intent intent = this.getIntent();
        String Username=intent.getStringExtra(newlogin.INFO_USER_NAME);
        tx_id.setText(Username);


        group =(RadioGroup)findViewById(R.id.tab_radioGroup);
        group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                switch (checkedId)
                {
                    case  R.id.rb_world:
                        Intent intent=new Intent();
                        intent.setClass(getApplicationContext(), activity_youhui.class);
                        startActivity(intent);
                        break;
                    case R.id.rb_home:
                        Intent intent1=new Intent();
                        intent1.setClass(getApplicationContext(), activity_showmap.class);
                        startActivity(intent1);
                        activity_mine.this.finish();
                        break;

                }
            }
        });

       // group=(RadioGroup)findViewById(R.id.tab_radioGroup);
/*
        group.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                switch(checkedId)
                {

                    case R.id.rb_world:
                        Intent intent=new Intent();
                        intent.setClass(getApplicationContext(), activity_youhui.class);
                        startActivity(intent);
                        break;
                    case R.id.rb_home:
                        Intent intent1=new Intent();
                        intent1.setClass(getApplicationContext(), newlogin.class);
                        startActivity(intent1);
                        break;
                    case R.id.rb_mine:
                        Intent intent2=new Intent();
                        intent2.setClass(getApplicationContext(), activity_mine.class);
                        //item.setIntent(intent);
                        startActivity(intent2);
                        break;
                }

            }
        });
*/

        //mine_setting

        text_fankui=(TextView) findViewById(R.id.mfankui) ;
        text_fankui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(),activity_mine_yijian.class);
                startActivity(intent);
            }
        });

        text_youhui=(TextView) findViewById(R.id.youhui) ;
        text_youhui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(),activity_mine_youhui.class);
                //item.setIntent(intent);
                startActivity(intent);
            }
        });
        text_lianxi=(TextView) findViewById(R.id.lianxi) ;
        text_lianxi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(), activity_mine_kefu.class);
                startActivity(intent);
            }
        });

        text_shoucang=(TextView) findViewById(R.id.shoucang) ;
        text_shoucang.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(), activity_mine_shoucang.class);
                //item.setIntent(intent);
                startActivity(intent);
            }
        });

        text_setting=(ImageView) findViewById(R.id.mine_setting) ;
        text_setting.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(), activity_mine_setting.class);
                //item.setIntent(intent);
                startActivity(intent);
            }
        });
        text_mycar=(TextView) findViewById(R.id.mycar) ;
        text_mycar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(), MainActivity.class);

                //item.setIntent(intent);
                startActivity(intent);
            }
        });


        text_fukuan=(TextView)findViewById(R.id.mine_unpay) ;
        text_fukuan.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(),activity_mine_fukuan.class);
                //item.setIntent(intent);
                startActivity(intent);

            }
        });



        text_ing=(TextView)findViewById(R.id.mine_unsend) ;
        text_ing.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(),activity_mine_ing.class);
                //item.setIntent(intent);
                startActivity(intent);
            }
        });

        text_pinglun=(TextView)findViewById(R.id.mine_unjudge) ;
        text_pinglun.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(),activity_mine_pingjia.class);
                //item.setIntent(intent);
                startActivity(intent);
              //  setContentView(R.layout.fragment_assessment);
            }
        });


        text = (TextView) findViewById(R.id.mine_login);
        text.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(getApplicationContext(), newlogin.class);
                //item.setIntent(intent);
                startActivity(intent);
            }
        });

    }

}
